.class public Lframent/SearchInShop;
.super Landroid/app/Activity;
.source "SearchInShop.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lframent/SearchInShop$mOncliclister;
    }
.end annotation


# instance fields
.field private adapter:Lframent/SearchInShopGoodsAdapter;

.field private close:Landroid/widget/ImageView;

.field private context:Landroid/content/Context;

.field private et_key:Landroid/widget/EditText;

.field private goodsBeans:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field private h:Landroid/os/Handler;

.field private loader:Lcom/nostra13/universalimageloader/core/ImageLoader;

.field private lv_goods:Landroid/widget/ListView;

.field private m:Lmyapp/MyApp;

.field private search:Landroid/widget/ImageView;

.field private shopid:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 32
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lframent/SearchInShop;)Landroid/widget/EditText;
    .locals 1

    .prologue
    .line 39
    iget-object v0, p0, Lframent/SearchInShop;->et_key:Landroid/widget/EditText;

    return-object v0
.end method

.method static synthetic access$1(Lframent/SearchInShop;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 34
    iget-object v0, p0, Lframent/SearchInShop;->context:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$2(Lframent/SearchInShop;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 182
    invoke-direct {p0, p1}, Lframent/SearchInShop;->getHttpSearchGoodsData(Ljava/lang/String;)V

    return-void
.end method

.method static synthetic access$3(Lframent/SearchInShop;)Lframent/SearchInShopGoodsAdapter;
    .locals 1

    .prologue
    .line 48
    iget-object v0, p0, Lframent/SearchInShop;->adapter:Lframent/SearchInShopGoodsAdapter;

    return-object v0
.end method

.method static synthetic access$4(Lframent/SearchInShop;)Lmyapp/MyApp;
    .locals 1

    .prologue
    .line 35
    iget-object v0, p0, Lframent/SearchInShop;->m:Lmyapp/MyApp;

    return-object v0
.end method

.method static synthetic access$5(Lframent/SearchInShop;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 43
    iget-object v0, p0, Lframent/SearchInShop;->shopid:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$6(Lframent/SearchInShop;)Landroid/os/Handler;
    .locals 1

    .prologue
    .line 45
    iget-object v0, p0, Lframent/SearchInShop;->h:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$7(Lframent/SearchInShop;)Ljava/util/List;
    .locals 1

    .prologue
    .line 47
    iget-object v0, p0, Lframent/SearchInShop;->goodsBeans:Ljava/util/List;

    return-object v0
.end method

.method private getHttpSearchGoodsData(Ljava/lang/String;)V
    .locals 2
    .param p1, "search_key"    # Ljava/lang/String;

    .prologue
    .line 184
    iget-object v0, p0, Lframent/SearchInShop;->goodsBeans:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 186
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lframent/SearchInShop$3;

    invoke-direct {v1, p0, p1}, Lframent/SearchInShop$3;-><init>(Lframent/SearchInShop;Ljava/lang/String;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 254
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    .line 258
    return-void
.end method

.method private initData()V
    .locals 2

    .prologue
    .line 172
    iput-object p0, p0, Lframent/SearchInShop;->context:Landroid/content/Context;

    .line 173
    iget-object v0, p0, Lframent/SearchInShop;->context:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    check-cast v0, Lmyapp/MyApp;

    iput-object v0, p0, Lframent/SearchInShop;->m:Lmyapp/MyApp;

    .line 174
    iget-object v0, p0, Lframent/SearchInShop;->m:Lmyapp/MyApp;

    invoke-virtual {v0}, Lmyapp/MyApp;->getInstance()Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v0

    iput-object v0, p0, Lframent/SearchInShop;->loader:Lcom/nostra13/universalimageloader/core/ImageLoader;

    .line 176
    invoke-virtual {p0}, Lframent/SearchInShop;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "shopid"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lframent/SearchInShop;->shopid:Ljava/lang/String;

    .line 177
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lframent/SearchInShop;->goodsBeans:Ljava/util/List;

    .line 179
    return-void
.end method

.method private initView()V
    .locals 3

    .prologue
    .line 163
    const v0, 0x7f0c00a8

    invoke-virtual {p0, v0}, Lframent/SearchInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lframent/SearchInShop;->close:Landroid/widget/ImageView;

    .line 164
    const v0, 0x7f0c013c

    invoke-virtual {p0, v0}, Lframent/SearchInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lframent/SearchInShop;->et_key:Landroid/widget/EditText;

    .line 165
    const v0, 0x7f0c013d

    invoke-virtual {p0, v0}, Lframent/SearchInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lframent/SearchInShop;->search:Landroid/widget/ImageView;

    .line 166
    const v0, 0x7f0c013e

    invoke-virtual {p0, v0}, Lframent/SearchInShop;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lframent/SearchInShop;->lv_goods:Landroid/widget/ListView;

    .line 167
    new-instance v0, Lframent/SearchInShopGoodsAdapter;

    iget-object v1, p0, Lframent/SearchInShop;->context:Landroid/content/Context;

    iget-object v2, p0, Lframent/SearchInShop;->goodsBeans:Ljava/util/List;

    invoke-direct {v0, v1, v2}, Lframent/SearchInShopGoodsAdapter;-><init>(Landroid/content/Context;Ljava/util/List;)V

    iput-object v0, p0, Lframent/SearchInShop;->adapter:Lframent/SearchInShopGoodsAdapter;

    .line 168
    iget-object v0, p0, Lframent/SearchInShop;->lv_goods:Landroid/widget/ListView;

    iget-object v1, p0, Lframent/SearchInShop;->adapter:Lframent/SearchInShopGoodsAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 169
    return-void
.end method

.method private setOncliclister()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 101
    iget-object v0, p0, Lframent/SearchInShop;->close:Landroid/widget/ImageView;

    new-instance v1, Lframent/SearchInShop$mOncliclister;

    invoke-direct {v1, p0, v2}, Lframent/SearchInShop$mOncliclister;-><init>(Lframent/SearchInShop;Lframent/SearchInShop$mOncliclister;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 102
    iget-object v0, p0, Lframent/SearchInShop;->search:Landroid/widget/ImageView;

    new-instance v1, Lframent/SearchInShop$mOncliclister;

    invoke-direct {v1, p0, v2}, Lframent/SearchInShop$mOncliclister;-><init>(Lframent/SearchInShop;Lframent/SearchInShop$mOncliclister;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 103
    iget-object v0, p0, Lframent/SearchInShop;->et_key:Landroid/widget/EditText;

    new-instance v1, Lframent/SearchInShop$2;

    invoke-direct {v1, p0}, Lframent/SearchInShop$2;-><init>(Lframent/SearchInShop;)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 130
    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 53
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 54
    const v0, 0x7f030037

    invoke-virtual {p0, v0}, Lframent/SearchInShop;->setContentView(I)V

    .line 56
    invoke-direct {p0}, Lframent/SearchInShop;->initData()V

    .line 57
    invoke-direct {p0}, Lframent/SearchInShop;->initView()V

    .line 58
    invoke-direct {p0}, Lframent/SearchInShop;->setOncliclister()V

    .line 60
    new-instance v0, Lframent/SearchInShop$1;

    invoke-direct {v0, p0}, Lframent/SearchInShop$1;-><init>(Lframent/SearchInShop;)V

    iput-object v0, p0, Lframent/SearchInShop;->h:Landroid/os/Handler;

    .line 97
    return-void
.end method
